import type { RouteRecordRaw } from 'vue-router';
// import TransitionLayout from '@/layouts/transition-layout.vue';
import blankLayout from '@/layouts/blank-layout.vue';
import noFund from '@/views/common/404/index.vue';
import { $t } from "@/locales";

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Root',
    component: blankLayout,
    children: [
      // 车辆参数
      {
        path: '/iframe-page',
        name: 'iframe-page',
        component: () => import('@/views/common/iframe-page/index.vue'),
        meta: {
          keepAlive: true,
          showNavBar: false,
          needLogin: false
        }
      },
      {
        path: '/:pathMatch(.*)*',
        name: 'NotFound',
        component: noFund,
        meta: {
          title: 'Not-Found',
          needLogin: false
        }
      }
    ]
  }
];

export default routes;
